/* 个人中心容器 */
.profile-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

/* 侧边导航 */
.profile-sidebar {
    width: 280px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    position: sticky;
    top: 80px;
    height: fit-content;
}

/* 用户卡片 */
.user-card {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #e6f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 48px;
    color: #1890ff;
}

.user-name {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.user-id {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

/* 侧边导航菜单 */
.profile-nav ul {
    list-style: none;
}

.profile-nav li {
    margin-bottom: 5px;
}

.profile-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.profile-nav a:hover {
    color: #1890ff;
    background-color: #f0f7ff;
}

.profile-nav li.active a {
    color: #1890ff;
    background-color: #e6f7ff;
    font-weight: 500;
    border-right: 3px solid #1890ff;
}

.profile-nav a i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 内容区 */
.profile-content {
    flex: 1;
    min-width: 0;
}

/* 内容区域块 */
.profile-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #333;
    margin: 0;
}

.edit-btn {
    padding: 6px 16px;
    font-size: 14px;
}

/* 表单样式增强 */
.info-form .form-row {
    margin-bottom: 20px;
}

.info-form .form-group {
    margin-bottom: 0;
}

.info-form textarea {
    height: 100px;
    resize: vertical;
}

/* 安全设置项 */
.security-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s;
}

.security-item:hover {
    background-color: #f0f7ff;
    transform: translateX(5px);
}

.item-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.item-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 统计卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-cards .stat-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.stats-cards .stat-card:hover {
    background-color: #e6f7ff;
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stats-cards .stat-card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: normal;
}

.stats-cards .stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #1890ff;
    margin: 0;
}

/* 图表容器 */
.chart-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.chart-container h3 {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .profile-container {
        flex-direction: column;
        gap: 20px;
    }

    .profile-sidebar {
        width: 100%;
        position: static;
    }

    .user-stats {
        padding: 0 40px;
    }

    .stats-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .profile-sidebar {
        padding: 15px;
    }

    .profile-section {
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .section-header h2 {
        font-size: 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px !important;
    }

    .security-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-cards .stat-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .profile-sidebar,
    .profile-section {
        padding: 15px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .user-name {
        font-size: 16px;
    }

    .user-stats {
        padding: 0;
    }

    .profile-nav a {
        padding: 10px;
        font-size: 14px;
    }

    .stats-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .chart-container {
        padding: 15px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-sidebar,
.profile-section {
    animation: fadeIn 0.5s ease-out;
}

.profile-section:nth-child(1) {
    animation-delay: 0.1s;
}

.profile-section:nth-child(2) {
    animation-delay: 0.2s;
}

.profile-section:nth-child(3) {
    animation-delay: 0.3s;
}

/* 导航项动画 */
.profile-nav a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 编辑模式样式 */
.edit-mode .form-group input,
.edit-mode .form-group textarea {
    background-color: #fff;
    border-color: #d9d9d9;
    cursor: text;
}

.edit-mode .form-group input:disabled,
.edit-mode .form-group textarea:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.edit-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* 消息通知样式 */
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.notification-item:hover {
    background-color: #f9f9f9;
}

.notification-item.unread {
    background-color: #e6f7ff;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1890ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 15px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.notification-content p {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.notification-time {
    font-size: 12px;
    color: #999;
}

/* 帮助与反馈样式 */
.feedback-form .form-group textarea {
    height: 150px;
}

.feedback-type {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.feedback-type label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.feedback-type label:hover {
    background-color: #f0f7ff;
}

.feedback-type input[type="radio"] {
    width: auto;
    margin: 0;
}